<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>管理中心 - 添加角色</title>
	<%@ include file="/common/meta.jsp" %>
	<link href="${ctx}/css/system/general.css" rel="stylesheet" type="text/css" />
	<link href="${ctx}/css/system/main.css" rel="stylesheet" type="text/css" />
	<link href="${ctx}/css/system/category.css" rel="StyleSheet" type="text/css" />	
	<link href="${ctx}/css/system/dtree.css" rel="StyleSheet" type="text/css" />	
	<script type="text/javascript" src="${ctx}/js/checkFrameSet.js"></script>
	<script type="text/javascript" src="${ctx}/js/jquery-1.4.min.js"></script>
	<script type="text/javascript">
	var contextPath = "${ctx}";
	</script>
	<script type="text/javascript" src="${ctx}/js/dtree.js"></script>
</head>
<body>
<h1>
<span class="action-span"><a href="${ctx}/system/role/manage">角色列表</a></span>
<span class="action-span1"><a href="#">管理中心</a>  - 添加角色 </span>
<div style="clear:both"></div>
</h1>

<div class="main-div">
  <form:form  modelAttribute="role" action="${ctx}/system/role" method="post" name="theForm" id="theForm" onsubmit="this.submit.disabled='true';">
  <table width="100%" id="general-table">
      <tr>
        <td class="label"><form:label for="name" path="name" cssErrorClass="error">名称</form:label></td>
        <td>
          <form:input path="name" maxlength="20" size="27" /> <font color="red">*</font> <form:errors path="name" /></td>
      </tr>
      <tr>
        <td class="label">操作权限</td>
        <td>
		<script type="text/javascript">
		<!--
		       <c:if test="${treeContent!=''}">
			       <c:out value="${treeContent}" escapeXml="false"/>
			       document.write(root);
			       $(document).ready(
			           function(){
			                root.openAll();
			           }
			       );
		       </c:if>
		//-->
		</script>
         </td>
      </tr>
      <tr>
        <td class="label">新闻栏目</td>
        <td>
		<script type="text/javascript">
		<!--
		       <c:if test="${newsColumnTreeContent!=''}">
			       <c:out value="${newsColumnTreeContent}" escapeXml="false"/>
			       document.write(newsColumnTreeRoot);
			       $(document).ready(
			           function(){
			                newsColumnTreeRoot.openAll();
			           }
			       );
		       </c:if>
		//-->
		</script>
         </td>
      </tr>
      <tr>
        <td class="label">排序</td>
        <td>
          <form:input path="sortOrder" size="15" /></td>
      </tr>
      </table>
      <div class="button-div">
        <input type="submit" value=" 确定 " />
      </div>
  </form:form>
</div>
</body>
</html>